import axios from '@/api/request'

// 获取三级联动列表
export const reqCategoryList = () => axios.get('/product/getBaseCategoryList')

// 获取搜索商品列表
export const getSearchList=(data)=>axios({url:'/list',method:'post',data})

// 获取商品详情
export const getGoodsDetail= skuId=>axios.get(`/item/${skuId}`)

// 添加购物车
export const addcart=(skuID,skuNum)=>axios.post(`/cart/addToCart/${ skuID }/${ skuNum }`)

// 获取购物车列表
export const getCartList=()=>axios({url:'/cart/cartList'})